<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
    <?php
    ob_end_clean();
     $id=  isset($_GET['id'])? $_GET['id'] : "";   //图片的id
    
     $conn=@mysql_connect("localhost","root","")  or die(mysql_error());
     mysql_query("SET NAMES UTF8");
     @mysql_select_db('guyueyan',$conn) or die(mysql_error());
    
     $ser = "select * from pictures where id='$id'";
    
     $query = mysql_query($ser) or die(mysql_error());
     $thread = mysql_fetch_assoc($query);
   
        if($thread){
            /*$houzui = explode("/",$thread["type"])[1];
            echo $houzui;       >>>webp */
            header('content-type:'.$thread['type']);
            echo $thread['content'];
           /*  echo "<img src='$thread' width='100%' alt='' referrerpolicy='no-referrer'/><br>";*/
           
        }
    
    
    ?>
    
    
    
</body>
</html>